/**
 * Created by asus on 2017/5/6 曹中义
 */
define([],function(){
    var tpl = {};
    tpl.inittable = function(){
        var html = '';
        html += table();
        return html;
    }
    var table=function(){
        return '<script id="table-con" type="text/html">'+
            '{{each rows as value i}}'+
            '<div class="table-tr clearfix">'+
            '   <div class="checkbox">'+
            '       <label>'+
            '       <input type="checkbox" class="blankCheckbox"   value="{{value.id}}" aria-label="...">'+
            '       </label>'+
            '   </div>'+
            '   <div>{{value.title}}</div>'+
            '   <div>{{value.templateType}}</div>'+
            '   <div>{{value.createName}}&nbsp;医生</div>'+
            '   <div>{{value.browseCount}}</div>'+
            '   <div>{{value.createTime}}</div>'+
            '   <div>'+
            '       <ul>'+
            '           <li><span class="fa fa-trash remove"></span></li>'+
            '           <li><span class="glyphicon glyphicon-arrow-up upTop"></span></li>'+
            '       </ul>'+
            '   </div>'+
            '   <button type="button" class="btn btn-primary xuanjiao" data-toggle="modal" data-target="#exampleModal" data-whatever="@mdo" value="{{value.id}}">查看</button>'+
            '</div>'+
            '{{/each}}'+
            '</script>'
    }
    tpl.inittype = function(){
        var html = '';
        html += type();
        return html;
    }
    var type=function(){
        return  '<script type="text/html" id="type-h">'+
            '{{each rows as value i}}'+
            '<option paramCode="{{value.paramCode}}" value="{{value.paramCode}}">{{value.paramName}}</option>'+
            '{{/each}}'+
            '</script>'
    }
    tpl.initname = function(){
        var html = '';
        html += name();
        return html;
    }
    var name=function(){
        return  '<script type="text/html" id="name-h">'+
            '{{each rows as value1 i}}'+
            '<option value="{{value1.id}}">{{value1.doctorName}}</option>'+
            '{{/each}}'+
            '</script>'
    }
    return tpl;
});
